function act() {
    var a = cm.getReactor().getState();
    if (a == 2) {
        cm.getReactor().delayedDestroyReactor(0);
        var b = cm.getPlayer().getPosition();
        if (Math.abs(b.x + 403) < 50 && Math.abs(b.y - 91) < 50) {
            cm.afterlandChangeMapObject("q63070_out", 1, 1, 1000, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070_out_pos", 1, 0, 0, 0, 0, 0, 0);
            cm.afterlandChangeMapObject("q63070Pen_out", 1, 0, 0, 0, 0, 0, 0);
            cm.openScriptNpc()
        } else {
            cm.spawnReactorOnGroundBelow(8659071, b.x, b.y)
        }
    } else {
        cm.getMap().getReactorById(8659071).forceHitReactor(cm.getPlayer(), 1, 623, 68, 0);
        cm.getMap().getReactorById(8659071).forceHitReactor(null, 2, -53, 91, 0);
        cm.getReactor().delayedDestroyReactor(0)
    }
}
var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.forceCompleteQuest(63070);
            cm.gainExp(317600);
            cm.updateInfoQuest(63070, "end=1;exp=1");
            cm.sendNormalTalk("你说的没错，外面的景色确实非常美。我不后悔出来看看。哎，那城墙为什么塌了？", 5, 9400249, false, true)
        } else {
            if (status === a++) {
                cm.sendNormalTalk("管它呢，谢谢你安全地送来我的金银财宝。", 5, 9400249, true, true)
            } else {
                if (status === a++) {
                    cm.addPopupSay(9400205, 3000, "大家似乎都很满意城墙外的景色哦？", "", 0);
                    cm.addPopupSay(9400205, 3000, "我觉得~这时候你还是跑去其他世界比较好！", "", 0);
                    cm.addPopupSay(9400205, 3000, "如果你要去下个世界，就来找我！", "", 0);
                    cm.dispose()
                }
            }
        }
    }
};